<?php

class ErrorComponent extends Component
{
    
    public function __construct()
    {
        parent::__construct();
        Strings::loadStrings("error");
    }
    
    public function initialize()
    {
        Page::setTitle(Strings::getString('page.title'));
        Page::setDescription(Strings::getString('page.description'));
        Page::setKeywords(Strings::getString('page.keywords'));
        return true;
    }
    
    public function update()
    {
        Controller::redirect(5, '');
    }
    
    public function render()
    {
        Html::div('align="center" style="margin-top: 150px"');
            Html::a('href="www.damianuberti.com.ar"');
                Html::img('/img/404.png', 'Error 404');
            Html::_a();
        Html::_div();
    }
}

?>